package net.yxsoft.enumclass.infrastructure;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by leo on 2016/5/16.
 */
public class MenuTypeEnumCls extends EnumClsBase<MenuTypeEnumCls> {
  public MenuTypeEnumCls(String text, String value) {
    super(text, value);
  }

  public static MenuTypeEnumCls MODULE = new MenuTypeEnumCls("模块", "1");

  public static MenuTypeEnumCls APP = new MenuTypeEnumCls("应用程序", "2");

  public static MenuTypeEnumCls FUNC = new MenuTypeEnumCls("功能", "3");

  public static List<MenuTypeEnumCls> UNDER_MODULE = new ArrayList<MenuTypeEnumCls>() {
    {
      add(MODULE);
      add(APP);
    }
  };

  public static List<MenuTypeEnumCls> UNDER_PROGRAM = new ArrayList<MenuTypeEnumCls>() {
    {
      add(FUNC);
    }
  };
}
